import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class ECareer
// did
export class ECareer{
  constructor(public __value:int) {}

  public value(): int {
    return this.__value;
  }

  public __write(arg1: SerializeStream): void {
    arg1.writeInt(this.__value);
    return;
  }

  public static convert(arg1: int): ECareer {
    return new ECareer(arg1);
  }

  public static __read(arg1: SerializeStream): ECareer {
    var loc1 = arg1.readInt();
    if (loc1 < 0 || loc1 >= 1048577) {
      throw new MarshalException();
    }
    return ECareer.convert(loc1);
  }

  public static /* const */ _ECareerNo: int = 0;

  public static /* const */ _ECareerWarrior: int = 1;

  public static /* const */ _ECareerArcher: int = 2;

  public static /* const */ _ECareerFireMage: int = 4;

  public static /* const */ _ECareerDoctor: int = 8;

  public static /* const */ _ECareerWarriorD: int = 16;

  public static /* const */ _ECareerStabber: int = 32;

  public static /* const */ _ECareerIceMage: int = 64;

  public static /* const */ _ECareerPriest: int = 128;

  public static /* const */ _ECareerNewPlayer: int = 256;

  public static /* const */ _ECareerPetPhysical: int = 512;

  public static /* const */ _ECareerPetMagic: int = 1024;

  public static /* const */ _ECareerPetPhysique: int = 2048;

  public static /* const */ _ECareerPetHighPhysical: int = 4096;

  public static /* const */ _ECareerPetHighMagic: int = 8192;

  public static /* const */ _ECareerPetHighPhysique: int = 16384;

  public static /* const */ _ECareerPetSecondPhysical: int = 32768;

  public static /* const */ _ECareerPetSecondMagic: int = 65536;

  public static /* const */ _ECareerPetSecondPhysique: int = 131072;

  public static /* const */ _ECareerPetThirdPhysical: int = 262144;

  public static /* const */ _ECareerPetThirdMagic: int = 524288;

  public static /* const */ _ECareerPetThirdPhysique: int = 1048576;

}
